import type { IndexRouteObject, NonIndexRouteObject } from 'react-router-dom';

export type IRoute =
	| (IndexRouteObject & {
			name?: string | null;
			topNavTitle?: string | null;
			redirect?: string;
			auth?: boolean;
			topNavVisible?: boolean;
			showNavs?: boolean;
			mainBottomPadding?: number;
			forceToHome?: boolean;
			rightSectionShow?: boolean;
			showSupport?: boolean;
			slideMenuVisible?: boolean;
	  })
	| (Omit<NonIndexRouteObject, 'children'> & {
			name?: string | null;
			topNavTitle?: string | null;
			redirect?: string;
			auth?: boolean;
			topNavVisible?: boolean;
			showNavs?: boolean;
			slideMenuVisible?: boolean;
			forceToHome?: boolean;
			rightSectionShow?: boolean;
			showSupport?: boolean;
			children?: IRoute[];
			mainBottomPadding?: number;
	  });
